﻿<Window
    x:Class="WpfTextSamples.VS2010Samples.Sample0001.MainWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="WPF Text Samples VS2010 Solution - Sample 0001"
    Width="640" Height="480"
    WindowStartupLocation="CenterScreen">

    <Grid>

        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="4"/>
            <ColumnDefinition Width="150"/>
            <ColumnDefinition Width="4"/>
            <ColumnDefinition Width="*"/>
            <ColumnDefinition Width="4"/>
        </Grid.ColumnDefinitions>

        <Grid.RowDefinitions>
            <RowDefinition Height="4"/>
            <RowDefinition Height="*"/>
            <RowDefinition Height="4"/>
        </Grid.RowDefinitions>

        <Border Grid.Column="1" Grid.Row="1" BorderThickness="1" BorderBrush="Blue" CornerRadius="4" Padding="4">
            <StackPanel>
                <TextBlock Text="Samples"/>
                <Separator/>
                <Button Name="ButtonPlain" Click="ButtonPlain_Click">Plain</Button>
                <Button Name="ButtonMisc1" Click="ButtonMisc1_Click">Misc 1</Button>
                <Button Name="ButtonComplex1" Click="ButtonComplex1_OnClick">Complex 1</Button>
                <Button Name="ButtonSuperscript" Click="ButtonSuperscript_Click">Superscript</Button>
                <Button Name="ButtonSubscript" Click="ButtonSubscript_Click">Subscript</Button>
                <Button Name="ButtonRuby" Click="ButtonRuby_Click">Ruby (Furigana)</Button>
            </StackPanel>
        </Border>

        <Border Grid.Column="3" Grid.Row="1" BorderThickness="1" BorderBrush="Blue" CornerRadius="4" Padding="4">
            <FlowDocumentPageViewer Name="FlowDocumentPageViewer">
                <FlowDocument>
                    <Paragraph>
                        Use the menu on the left side...
                    </Paragraph>
                </FlowDocument>
            </FlowDocumentPageViewer>
        </Border>

    </Grid>

</Window>
